package demo1.controller;

import demo1.model.User;
import demo1.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author quan
 * @Description 控制器层代码实现
 * @Date 2023/7/24 9:35
 */
@RestController
@RequestMapping("/web")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("/queryAll")
    public List<User> queryAll(){
        return userService.queryAll();
    }
}
